#ifndef _CAPP_H_
    #define _CAPP_H_

#include <iostream>

#include <SDL.h>
#include "CAppEvents.h"
#include "CAnimation.h"
#include "CSurface.h"
#include "CEntity.h"
#include "CSettings.h"
#include "CArea.h"
#include "CPlayer.h"
#include <Box2D\Box2D.h>

using namespace std;

class CApp : public CAppEvents
{
    private:
        bool            Running;
        SDL_Surface*    Surf_Display;
		CPlayer Player1;
		CPlayer Player2;		

    public:
		

        CApp();
 
        int OnExecute();
 
        bool OnInit();
 
        void OnEvent(SDL_Event* Event);
 
		void OnExit();

        void OnLoop();
 
        void OnRender();
 
        void OnCleanup();

		void OnKeyDown(SDLKey sym, SDLMod mod, Uint16 unicode);

		void OnKeyUp(SDLKey sym, SDLMod mod, Uint16 unicode);


	//game 
//		CAnimation Anim_Leo;
	//logic
	//CEntity Entity1;
	//CEntity Entity2;


};
 
#endif